Whenever there are portions of code that are duplicated and do not depend on the state of their container class, they can be centralized inside a
"utility class". A utility class is a class that only has static members, hence it should not be instantiated.
Exceptions
When a class contains public static void main(String[] args)
method it is not considered as a utility class and will be ignored by
this rule.